﻿@model Great_Eggspectations.DAL.Partner
@using Great_Eggspectations.Utilities;

<div class="form-group">
    @Html.LabelFor(model => model.Name, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.Name)
        @Html.ValidationMessageFor(model => model.Name)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Address, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.Address)
        @Html.ValidationMessageFor(model => model.Address)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.City, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.City)
        @Html.ValidationMessageFor(model => model.City)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.State, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.DropDownListFor(model => model.State, new SelectList(Constants.GetStates(), "Value", "Name"))
        @Html.ValidationMessageFor(model => model.State)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.ZIP, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.ZIP)
        @Html.ValidationMessageFor(model => model.ZIP)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Phone, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.Phone)
        @Html.ValidationMessageFor(model => model.Phone)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Email, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.EditorFor(model => model.Email)
        @Html.ValidationMessageFor(model => model.Email)
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(model => model.Details, new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.TextAreaFor(model => model.Details)
    </div>
</div>

<div class="form-group">
    <label for="CSVTags" class="control-label col-md-2">Tags</label> @*todo: fix!*@
    <div class="col-md-10">
        @Html.EditorFor(model => model.CSVTags)
    </div>
</div>
